﻿<form name="fmAdd" method="post" novalidate>
    <input type="hidden" name="CMId" value="0" />
    <div style="width: 395px; float: left; height: auto; overflow: hidden">
        <fieldset>
            <legend>合同信息 </legend>
            <div class="fitem">
                <span>合同编号：</span>
                <input type="text" class="easyui-validatebox" required="true" style="width: 80px" name="CMNumber" />
            </div>
        </fieldset>
        <fieldset>
            <legend>房源信息 <a href="javascript:;" class="jsFunc" win="/House/Js/Sells_Select"  arg0="Items_Buy_Add_HouseId" arg1="true">选择</a></legend>
            <div class="fitem">
                <span>房源编号：</span>
                <input type="text" class="easyui-validatebox" readonly="readonly" data-error="请选择房源" required="true" style="width: 230px" name="HouseId" id="Items_Buy_Add_HouseId" value="" />

            </div>
            <div class="fitem">
                <span>区域：</span>
                <select name="SellRegionArea" class="easyui-validatebox xclass-region-area-list" required="true" value="">
                </select>
            </div>
            <div class="fitem">
                <span>小区：</span>
                <input name="SellBuildingId" id="SellAddSellBuildingId" class="easyui-validatebox xclass-region-building" value="" valueid="" style="width: 210px" />
            </div>
            <div class="fitem">
                <span>栋号房号：</span>
                <input name="Dong" class="easyui-validatebox width-short" required="true" value="" />栋
                    <input name="Fang" class="easyui-validatebox width-short" required="true" value="" />
            </div>
            <div class="fitem">
                <span>姓名：</span>
                <input name="HouseCustomerName" class="easyui-validatebox" required="true" value="" style="width: 120px" />
            </div>
            <div class="fitem">
                <span>电话：</span>
                <input name="HouseTel" class="easyui-validatebox" data-options="required:true,validType:'phoneOrMobile'" value="" style="width: 120px" />
            </div>
            <div class="fitem">
                <span>身份证号：</span>
                <input name="HousePersonID" class="easyui-validatebox" data-options="required:true,validType:'IDNUMBER'" value="" style="width: 200px" />
            </div>
            <div class="fitem">
                <span>面积：</span>
                <input name="HouseArea" class="easyui-validatebox" data-options="required:true,validType:'number'" value="" style="width: 120px" />平方
            </div>
            <div class="fitem">
                <span>单价：</span>
                <input name="UnitPrice" class="easyui-validatebox" data-options="required:true,validType:'number'" value="" style="width: 60px" />元/平
                    <span>总价：</span>
                <input name="TotalPrice" class="easyui-validatebox" data-options="required:true,validType:'number'" value="" style="width: 60px" />万
            </div>
            <div class="fitem">
                <span>产证日期：</span>
                <input name="GetPropertyDate" class="easyui-datebox" required="true" style="width: 120px" value="" />
            </div>
        </fieldset>
    </div>
    <div style="width: 475px; float: left; height: auto">
        <fieldset>
            <legend>客户信息 <a href="javascript:;" class="jsFunc" win="/CRM/Js/Select_Buyers" arg0="Items_Buy_Add_CustomerName" arg1="true">选择</a>
                <a href="javascript:;" class="jsFunc" win="/CRM/Js/Buyers_Add" arg0="0">新增</a>
            </legend>
            <div class="fitem">
                <span>客源编号：</span>
                <input type="text" class="easyui-validatebox" readonly="readonly"  data-error="请选择客户" required="true" style="width: 80px" name="CustomerId" value="" />
                <span>客户姓名：</span>
                <input name="CustomerName" value="" required="true" class="easyui-validatebox" style="width: 120px" id="Items_Buy_Add_CustomerName" />
                <input type="hidden" name="CustomerIdHidden" value="" required="true" class="easyui-validatebox" style="width: 120px" id="Items_Buy_Add_CustomerId" />
                <label class="no-width">
                    <input name="Sex" type="radio" value="1" />男</label>
                <label class="no-width">
                    <input name="Sex" type="radio" value="0" />女</label>
            </div>
            <div class="fitem">
                <span>电话：</span>
                <input name="CustomerTel" value="" required="true" class="easyui-validatebox" data-options="validType:'phoneOrMobile'" style="width: 120px" />
            </div>
            <div class="fitem">
                <span>身份证号：</span>
                <input name="CustomerPersonID" class="easyui-validatebox" data-options="required:true,validType:'IDNUMBER'" value="" style="width: 200px" />
            </div>
        </fieldset>
        <fieldset>
            <legend>签单人信息 <a href="javascript:;" class="jsFunc" win="/RBAC/Js/SelectUsers" arg0="Items_Buy_Add_UserName" arg1="true">选择</a></legend>

            <div class="fitem">
                <span style="display: none">编号：</span>
                <input name="SignUserId" class="easyui-validatebox" data-error="签单人必须选择"  readonly="readonly" data-options="required:true,validType:'number'" value="" style="width: 120px; display: none" />
                <span>姓名：</span>
                <input name="SignUser" readonly="readonly" class="easyui-validatebox" required="true" value="" style="width: 120px" id="Items_Buy_Add_UserName" />

                <span>电话：</span>
                <input name="UserMobile" class="easyui-validatebox" data-options="required:true,validType:'phoneOrMobile'" value="" style="width: 120px" />
            </div>
            <div class="fitem">
                <span>部门：</span>
                <input name="SignDepartId" id="Items_Buy_Add_UserDepartId" class="easyui-validatebox xclass-org-departs" style="width: 160px" value="" />
            </div>
        </fieldset>
        <fieldset>
            <legend>费用信息</legend>

            <div class="fitem">
                <span>付款方式：</span>
                <select name="PayType" class="easyui-validatebox" data-options="required:true" style="width: 120px">
                    <option value="">选择付款方式</option>
                    <option value="0">一次性支付</option>
                    <option value="1">省直公积金</option>
                    <option value="2">市直公积金</option>
                    <option value="3">商业贷款</option>
                    <option value="4">市直加商贷</option>
                    <option value="5">省直加商贷</option>
                    <option value="6">自行贷款</option>
                    <option value="7">组合贷款</option>
                </select>
                <span>佣金支付：</span>
                <select name="ChargePayType" class="easyui-validatebox" data-options="required:true" style="width: 120px">
                    <option value="">选择佣金付款方式</option>
                    <option value="0">双方支付</option>
                    <option value="1">买方支付</option>
                    <option value="2">卖方支付</option>
                    <option value="3">包费用</option>
                </select>
            </div>
            <div class="fitem">
                <span>首付款：</span>
                <input type="text" name="FirstPayment" class="easyui-validatebox" data-options="required:true,validType:'number'" style="width: 110px" value="" />万
            </div>
            <div class="fitem">
                <span>是否限购：</span>
                <label>是<input type="radio" value="true" name="IsLimitBuy" /></label>
                <label>否<input type="radio" value="false" name="IsLimitBuy" checked /></label>
                <span>是否限贷：</span>
                <label>是<input type="radio" value="true" name="IsLimitLoan" /></label>
                <label>否<input type="radio" value="false" name="IsLimitLoan" checked /></label>
            </div>
            <div class="fitem">
                <span>卖方佣金：</span>
                <input type="text" name="ChargeHouse" class="easyui-validatebox" data-options="required:true,validType:'number'" style="width: 110px" value="" />元
                <span>买方佣金：</span>
                <input type="text" name="ChargeCustomer" class="easyui-validatebox" data-options="required:true,validType:'number'" style="width: 110px" value="" />元
            </div>
        </fieldset>

        <fieldset>
            <legend>约定时间</legend>
            <div class="fitem">
                <span>约定还款：</span>
                <input type="text" class="easyui-datebox" name="PlanRebackBank" value="" />
            </div>
            <div class="fitem">
                <span>约定过户：</span>
                <input type="text" class="easyui-datebox" name="PlanTransfer" value="" />
            </div>
            <div class="fitem">
                <span>约定下款：</span>
                <input type="text" class="easyui-datebox" name="PlanBankPay" value="" />
            </div>
        </fieldset>
        <fieldset style="display: none">
            <legend>备注</legend>
            <textarea name="Mem" style="width: 420px"></textarea>
        </fieldset>
    </div>
</form>
